/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tp.Inheritance.Model;

/**
 *
 * @author Devon
 */
public
        class MountainBike extends Bicycle
{

    // the MountainBike subclass adds one field
    public
            int seatHeight;

    // the MountainBike subclass has one constructor
    public
            MountainBike(int startHeight, int startCadence, int startSpeed, int startGear)
    {
        super(startCadence, startSpeed, startGear);
        seatHeight = startHeight;
    }

    // the MountainBike subclass adds one method
    public
            void setHeight(int newValue)
    {
        seatHeight = newValue;
    }
}
